package entity;

import io.gitee.horizon007.webspider.annotation.Context;
import io.gitee.horizon007.webspider.transformer.AttributeTransformer;
import io.gitee.horizon007.webspider.transformer.Transformer;
import lombok.Data;

@Data
public class QQNewsItem {

    @Context(selector = "a.picture > img", transformer = Transformer.ATTR)
    @AttributeTransformer.AttributeName("src")
    private String img;

    @Context(selector = "div.detail > h3 > a")
    private String title;

    @Context(selector = ".source")
    private String from;

}
